function changeTap(id) {
	if (id == 1) {
		$("#itemDiv-description").css("display", "block");
		$("#itemDiv-teacher").css("display", "none");
		$("#itemDiv-msg-li-1").css("background-color", "#2274CA");
		$("#itemDiv-msg-li-2").css("background-color", "#DDEAEE");

	}
	if (id == 2) {
		$("#itemDiv-description").css("display", "none");
		$("#itemDiv-teacher").css("display", "block");
		$("#itemDiv-msg-li-2").css("background-color", "#2274CA");
		$("#itemDiv-msg-li-1").css("background-color", "#DDEAEE");
	}
}




function show() {
/*====get teacher info====*/
/*
	$.ajax( {
		url: "/edu/teacher/getTeacherInfo",
		type: "POST",
		data: {
			count: 3
		},
		dataType: "json",
		async: false,
		success: function(data) {
			if (data.status) {
				$.each(data.teacherInfo, function(i, item) {
					$("#t" + i).css("background", "url(" + item.photoPath + ")");
					$("#t" + i + " > span").innerHTML = item.name + "<br />" + item.edubg;
					$("#t" + i + " > a").attr("href", "/edu/teacher/teacherInfo.html?teacher_id=" + item.teacherId);
				});
			} else {

			}
		}
	});
	*/
	getTeacherList(3);

	var lesson_id_str = getQueryString("lesson_id");
	//getLessonInfo
	$.ajax({
		url: "/edu/lesson/getLessonInfoByLessonID",
		type: "POST",
		data: {
			lesson_id: lesson_id_str
		},
		dataType: "json",
		async: false,
		success: function(data) {
			if (data.status) {
				$(".itemDiv-msg-title").append(data.name);
				$(".itemDiv-msg-text:eq(0)").append(data.houre);
				$(".itemDiv-msg-text:eq(1)").append(data.grade);
				$(".itemDiv-msg-text:eq(2)").append(data.price);
				$("#itemDiv-description").append(data.description);
				$('.itemDiv-image').css("background","url('"+data.photo_path+"')  no-repeat");
				$('.itemDiv-image').css("background-size", "100% 100%");
				$("#itemDiv-msg-li-1").css("background-color", "#2274CA");
			} else {

			}
		}
	});

	//get LessonTeachers
	$.ajax({
		url: "/edu/teacher/getLessonTeachersByLessonId",
		type: "POST",
		data: {
			lesson_id: lesson_id_str
		},
		dataType: "json",
		async: false,
		success: function(data) {
			if (data.status) {
			$(".teacherItemDiv-item-body").empty();
				$.each(data.rows, function(i, item) {
					var htmlStr = "";
					htmlStr += "<a href='/edu/teacher/teacherInfo.html?teacher_id=" + item.teacher_id + "' id='a0'>";
					htmlStr += "<div class='teacherItem'>";
					htmlStr += "<img class='teacherItemImg' src='"+item.photo_path+"'/>";
					htmlStr += "<div class='teacherItemInfo'>";
					htmlStr += "<div class='teacherItemInfo-title'>"+item.name+"</div>";
					htmlStr += "<div class='teacherItemInfo-body'>"+item.edu_bg+"</div>";
					htmlStr += "<div class='teacherItemInfo-body'><a href='/edu/teacher/teacherInfo.html?teacher_id="+item.teacher_id+"'>查看辅导课程</a>";
					htmlStr += "</div>";
					htmlStr += "<div class='teacherItemInfo-body'>"+item.remark1+"</div>";
					htmlStr += "</div>";
					htmlStr += "</div>";
					$(".teacherItemDiv-item-body").append(htmlStr);
				});
			} else {

			}
		}
	});

}
